<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Embroidermodder: extern/libembroidery/src/formats.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  extensions: ["tex2jax.js", "TeX/AMSmath.js"],
  jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="logo_embroidermodder_2_0.png"/></td>
  <td id="projectalign">
   <div id="projectname">Embroidermodder<span id="projectnumber">&#160;2.0.0-alpha4</span>
   </div>
   <div id="projectbrief">A free and open source software for machine embroidery</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('formats_8c.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle"><div class="title">formats.c File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &lt;math.h&gt;</code><br />
<code>#include &lt;ctype.h&gt;</code><br />
<code>#include &quot;<a class="el" href="embroidery__internal_8h_source.html">embroidery_internal.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a596a4ab45910b13ea2809999de4c6950"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#a596a4ab45910b13ea2809999de4c6950">safe_free</a> (void *data)</td></tr>
<tr class="memdesc:a596a4ab45910b13ea2809999de4c6950"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>data</em>  <a href="formats_8c.html#a596a4ab45910b13ea2809999de4c6950">More...</a><br /></td></tr>
<tr class="separator:a596a4ab45910b13ea2809999de4c6950"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc9c1d877503ff275a0b5041ac1905c1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#afc9c1d877503ff275a0b5041ac1905c1">embFormat_getExtension</a> (const char *fileName, char *ending)</td></tr>
<tr class="memdesc:afc9c1d877503ff275a0b5041ac1905c1"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>fileName</em> <em>ending</em>  <a href="formats_8c.html#afc9c1d877503ff275a0b5041ac1905c1">More...</a><br /></td></tr>
<tr class="separator:afc9c1d877503ff275a0b5041ac1905c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4552966a13bd17d268b2424a8dfc14ad"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#a4552966a13bd17d268b2424a8dfc14ad">emb_identify_format</a> (const char *fileName)</td></tr>
<tr class="memdesc:a4552966a13bd17d268b2424a8dfc14ad"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>fileName</em>  <a href="formats_8c.html#a4552966a13bd17d268b2424a8dfc14ad">More...</a><br /></td></tr>
<tr class="separator:a4552966a13bd17d268b2424a8dfc14ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15c50a3a26d0d120fe31f54313984185"><td class="memItemLeft" align="right" valign="top">short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#a15c50a3a26d0d120fe31f54313984185">fread_int16</a> (FILE *f)</td></tr>
<tr class="memdesc:a15c50a3a26d0d120fe31f54313984185"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>f</em>  <a href="formats_8c.html#a15c50a3a26d0d120fe31f54313984185">More...</a><br /></td></tr>
<tr class="separator:a15c50a3a26d0d120fe31f54313984185"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bcdb1e6bf6930d5c054ecdca9831eba"><td class="memItemLeft" align="right" valign="top">unsigned short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#a2bcdb1e6bf6930d5c054ecdca9831eba">fread_uint16</a> (FILE *f)</td></tr>
<tr class="memdesc:a2bcdb1e6bf6930d5c054ecdca9831eba"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>f</em>  <a href="formats_8c.html#a2bcdb1e6bf6930d5c054ecdca9831eba">More...</a><br /></td></tr>
<tr class="separator:a2bcdb1e6bf6930d5c054ecdca9831eba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05fb50e7292226bc2947dd2b4da7a9bd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#a05fb50e7292226bc2947dd2b4da7a9bd">fread_int32_be</a> (FILE *f)</td></tr>
<tr class="memdesc:a05fb50e7292226bc2947dd2b4da7a9bd"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>f</em>  <a href="formats_8c.html#a05fb50e7292226bc2947dd2b4da7a9bd">More...</a><br /></td></tr>
<tr class="separator:a05fb50e7292226bc2947dd2b4da7a9bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7edd4650a0181a4c4c18d7949dd2f817"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#a7edd4650a0181a4c4c18d7949dd2f817">fpad</a> (FILE *file, char c, int n)</td></tr>
<tr class="memdesc:a7edd4650a0181a4c4c18d7949dd2f817"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>f</em>  <a href="formats_8c.html#a7edd4650a0181a4c4c18d7949dd2f817">More...</a><br /></td></tr>
<tr class="separator:a7edd4650a0181a4c4c18d7949dd2f817"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2256826c6ea8d2374fc94df46a7616f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#ab2256826c6ea8d2374fc94df46a7616f">binaryWriteShort</a> (FILE *f, short data)</td></tr>
<tr class="memdesc:ab2256826c6ea8d2374fc94df46a7616f"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>f</em> <em>data</em>  <a href="formats_8c.html#ab2256826c6ea8d2374fc94df46a7616f">More...</a><br /></td></tr>
<tr class="separator:ab2256826c6ea8d2374fc94df46a7616f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a760e806c16c1612a6b5ca5a26bc736d1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#a760e806c16c1612a6b5ca5a26bc736d1">binaryWriteUShort</a> (FILE *f, unsigned short data)</td></tr>
<tr class="memdesc:a760e806c16c1612a6b5ca5a26bc736d1"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>f</em> <em>data</em>  <a href="formats_8c.html#a760e806c16c1612a6b5ca5a26bc736d1">More...</a><br /></td></tr>
<tr class="separator:a760e806c16c1612a6b5ca5a26bc736d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac93ea02c7dfc79fb81e7e7cc5acea14a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#ac93ea02c7dfc79fb81e7e7cc5acea14a">binaryWriteUShortBE</a> (FILE *f, unsigned short data)</td></tr>
<tr class="memdesc:ac93ea02c7dfc79fb81e7e7cc5acea14a"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>f</em> <em>data</em>  <a href="formats_8c.html#ac93ea02c7dfc79fb81e7e7cc5acea14a">More...</a><br /></td></tr>
<tr class="separator:ac93ea02c7dfc79fb81e7e7cc5acea14a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaa069d2e820245be0f711415e2c297d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#acaa069d2e820245be0f711415e2c297d">binaryWriteInt</a> (FILE *f, int data)</td></tr>
<tr class="memdesc:acaa069d2e820245be0f711415e2c297d"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>f</em> <em>data</em>  <a href="formats_8c.html#acaa069d2e820245be0f711415e2c297d">More...</a><br /></td></tr>
<tr class="separator:acaa069d2e820245be0f711415e2c297d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad608ccee7fa2036aeba8500061ea0824"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#ad608ccee7fa2036aeba8500061ea0824">binaryWriteIntBE</a> (FILE *f, int data)</td></tr>
<tr class="memdesc:ad608ccee7fa2036aeba8500061ea0824"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>f</em> <em>data</em>  <a href="formats_8c.html#ad608ccee7fa2036aeba8500061ea0824">More...</a><br /></td></tr>
<tr class="separator:ad608ccee7fa2036aeba8500061ea0824"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad56027171faded451118350359c1e8ae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#ad56027171faded451118350359c1e8ae">binaryWriteUInt</a> (FILE *f, unsigned int data)</td></tr>
<tr class="memdesc:ad56027171faded451118350359c1e8ae"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>f</em> <em>data</em>  <a href="formats_8c.html#ad56027171faded451118350359c1e8ae">More...</a><br /></td></tr>
<tr class="separator:ad56027171faded451118350359c1e8ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a152fc4262fce475f30786312da68fad6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#a152fc4262fce475f30786312da68fad6">binaryWriteUIntBE</a> (FILE *f, unsigned int data)</td></tr>
<tr class="memdesc:a152fc4262fce475f30786312da68fad6"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>f</em> <em>data</em>  <a href="formats_8c.html#a152fc4262fce475f30786312da68fad6">More...</a><br /></td></tr>
<tr class="separator:a152fc4262fce475f30786312da68fad6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80a4e0664d3d887e8013601f1139a388"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#a80a4e0664d3d887e8013601f1139a388">embPattern_read</a> (<a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *pattern, const char *fileName, int format)</td></tr>
<tr class="memdesc:a80a4e0664d3d887e8013601f1139a388"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>pattern</em> <em>fileName</em> <em>format</em>  <a href="formats_8c.html#a80a4e0664d3d887e8013601f1139a388">More...</a><br /></td></tr>
<tr class="separator:a80a4e0664d3d887e8013601f1139a388"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b8450b7b1a5b3f7e2dc615ee21fc243"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#a2b8450b7b1a5b3f7e2dc615ee21fc243">embPattern_write</a> (<a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *pattern, const char *fileName, int format)</td></tr>
<tr class="memdesc:a2b8450b7b1a5b3f7e2dc615ee21fc243"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>pattern</em> <em>fileName</em> <em>format</em>  <a href="formats_8c.html#a2b8450b7b1a5b3f7e2dc615ee21fc243">More...</a><br /></td></tr>
<tr class="separator:a2b8450b7b1a5b3f7e2dc615ee21fc243"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5855903752f175ec50a58b4a734d9900"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#a5855903752f175ec50a58b4a734d9900">embPattern_readAuto</a> (<a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *pattern, const char *fileName)</td></tr>
<tr class="memdesc:a5855903752f175ec50a58b4a734d9900"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>pattern</em> <em>fileName</em>  <a href="formats_8c.html#a5855903752f175ec50a58b4a734d9900">More...</a><br /></td></tr>
<tr class="separator:a5855903752f175ec50a58b4a734d9900"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf1191dc2ec8fa37e5806bf185bce0ca"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#acf1191dc2ec8fa37e5806bf185bce0ca">embPattern_writeAuto</a> (<a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *pattern, const char *fileName)</td></tr>
<tr class="memdesc:acf1191dc2ec8fa37e5806bf185bce0ca"><td class="mdescLeft">&#160;</td><td class="mdescRight"><em>pattern</em> <em>fileName</em>  <a href="formats_8c.html#acf1191dc2ec8fa37e5806bf185bce0ca">More...</a><br /></td></tr>
<tr class="separator:acf1191dc2ec8fa37e5806bf185bce0ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a8cb11404ce46501561f956d33f8dcf95"><td class="memItemLeft" align="right" valign="top"><a class="el" href="embroidery_8h.html#afb3d2c0a23933d1ce50c4ec598b31c56">EmbFormatList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#a8cb11404ce46501561f956d33f8dcf95">formatTable</a> [<a class="el" href="embroidery_8h.html#afc6032ce2b92a1d32b18b87b1e5ba13e">numberOfFormats</a>]</td></tr>
<tr class="separator:a8cb11404ce46501561f956d33f8dcf95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a659abd7fd70a37a200df2665e35c7c89"><td class="memItemLeft" align="right" valign="top">const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="formats_8c.html#a659abd7fd70a37a200df2665e35c7c89">imageWithFrame</a> [38][48]</td></tr>
<tr class="separator:a659abd7fd70a37a200df2665e35c7c89"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="acaa069d2e820245be0f711415e2c297d" name="acaa069d2e820245be0f711415e2c297d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acaa069d2e820245be0f711415e2c297d">&#9670;&nbsp;</a></span>binaryWriteInt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void binaryWriteInt </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>f</em> <em>data</em> </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000231">Todo:</a></b></dt><dd>replace with embInt_read </dd></dl>

</div>
</div>
<a id="ad608ccee7fa2036aeba8500061ea0824" name="ad608ccee7fa2036aeba8500061ea0824"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad608ccee7fa2036aeba8500061ea0824">&#9670;&nbsp;</a></span>binaryWriteIntBE()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void binaryWriteIntBE </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>f</em> <em>data</em> </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000232">Todo:</a></b></dt><dd>replace with embInt_read </dd></dl>

</div>
</div>
<a id="ab2256826c6ea8d2374fc94df46a7616f" name="ab2256826c6ea8d2374fc94df46a7616f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2256826c6ea8d2374fc94df46a7616f">&#9670;&nbsp;</a></span>binaryWriteShort()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void binaryWriteShort </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">short&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>f</em> <em>data</em> </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000228">Todo:</a></b></dt><dd>replace with embInt_read </dd></dl>

</div>
</div>
<a id="ad56027171faded451118350359c1e8ae" name="ad56027171faded451118350359c1e8ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad56027171faded451118350359c1e8ae">&#9670;&nbsp;</a></span>binaryWriteUInt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void binaryWriteUInt </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>f</em> <em>data</em> </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000233">Todo:</a></b></dt><dd>replace with embInt_read </dd></dl>

</div>
</div>
<a id="a152fc4262fce475f30786312da68fad6" name="a152fc4262fce475f30786312da68fad6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a152fc4262fce475f30786312da68fad6">&#9670;&nbsp;</a></span>binaryWriteUIntBE()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void binaryWriteUIntBE </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>f</em> <em>data</em> </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000234">Todo:</a></b></dt><dd>replace with embInt_read </dd></dl>

</div>
</div>
<a id="a760e806c16c1612a6b5ca5a26bc736d1" name="a760e806c16c1612a6b5ca5a26bc736d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a760e806c16c1612a6b5ca5a26bc736d1">&#9670;&nbsp;</a></span>binaryWriteUShort()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void binaryWriteUShort </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned short&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>f</em> <em>data</em> </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000229">Todo:</a></b></dt><dd>replace with embInt_read </dd></dl>

</div>
</div>
<a id="ac93ea02c7dfc79fb81e7e7cc5acea14a" name="ac93ea02c7dfc79fb81e7e7cc5acea14a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac93ea02c7dfc79fb81e7e7cc5acea14a">&#9670;&nbsp;</a></span>binaryWriteUShortBE()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void binaryWriteUShortBE </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned short&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>f</em> <em>data</em> </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000230">Todo:</a></b></dt><dd>replace with embInt_read </dd></dl>

</div>
</div>
<a id="a4552966a13bd17d268b2424a8dfc14ad" name="a4552966a13bd17d268b2424a8dfc14ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4552966a13bd17d268b2424a8dfc14ad">&#9670;&nbsp;</a></span>emb_identify_format()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int emb_identify_format </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fileName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>fileName</em> </p>
<dl class="section return"><dt>Returns</dt><dd>int </dd></dl>

</div>
</div>
<a id="afc9c1d877503ff275a0b5041ac1905c1" name="afc9c1d877503ff275a0b5041ac1905c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc9c1d877503ff275a0b5041ac1905c1">&#9670;&nbsp;</a></span>embFormat_getExtension()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embFormat_getExtension </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>ending</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>fileName</em> <em>ending</em> </p>
<dl class="section return"><dt>Returns</dt><dd>int </dd></dl>

</div>
</div>
<a id="a80a4e0664d3d887e8013601f1139a388" name="a80a4e0664d3d887e8013601f1139a388"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80a4e0664d3d887e8013601f1139a388">&#9670;&nbsp;</a></span>embPattern_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char embPattern_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>pattern</em> <em>fileName</em> <em>format</em> </p>
<dl class="section return"><dt>Returns</dt><dd>char </dd></dl>

</div>
</div>
<a id="a5855903752f175ec50a58b4a734d9900" name="a5855903752f175ec50a58b4a734d9900"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5855903752f175ec50a58b4a734d9900">&#9670;&nbsp;</a></span>embPattern_readAuto()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char embPattern_readAuto </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fileName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>pattern</em> <em>fileName</em> </p>
<dl class="section return"><dt>Returns</dt><dd>char </dd></dl>

</div>
</div>
<a id="a2b8450b7b1a5b3f7e2dc615ee21fc243" name="a2b8450b7b1a5b3f7e2dc615ee21fc243"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b8450b7b1a5b3f7e2dc615ee21fc243">&#9670;&nbsp;</a></span>embPattern_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char embPattern_write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>pattern</em> <em>fileName</em> <em>format</em> </p>
<dl class="section return"><dt>Returns</dt><dd>char </dd></dl>

</div>
</div>
<a id="acf1191dc2ec8fa37e5806bf185bce0ca" name="acf1191dc2ec8fa37e5806bf185bce0ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf1191dc2ec8fa37e5806bf185bce0ca">&#9670;&nbsp;</a></span>embPattern_writeAuto()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char embPattern_writeAuto </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fileName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>pattern</em> <em>fileName</em> </p>
<dl class="section return"><dt>Returns</dt><dd>char </dd></dl>

</div>
</div>
<a id="a7edd4650a0181a4c4c18d7949dd2f817" name="a7edd4650a0181a4c4c18d7949dd2f817"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7edd4650a0181a4c4c18d7949dd2f817">&#9670;&nbsp;</a></span>fpad()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void fpad </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>f</em> </p>
<dl class="section return"><dt>Returns</dt><dd>int </dd></dl>

</div>
</div>
<a id="a15c50a3a26d0d120fe31f54313984185" name="a15c50a3a26d0d120fe31f54313984185"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15c50a3a26d0d120fe31f54313984185">&#9670;&nbsp;</a></span>fread_int16()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">short fread_int16 </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>f</em> </p>
<dl class="section return"><dt>Returns</dt><dd>short </dd></dl>

</div>
</div>
<a id="a05fb50e7292226bc2947dd2b4da7a9bd" name="a05fb50e7292226bc2947dd2b4da7a9bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05fb50e7292226bc2947dd2b4da7a9bd">&#9670;&nbsp;</a></span>fread_int32_be()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int fread_int32_be </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>f</em> </p>
<dl class="section return"><dt>Returns</dt><dd>int</dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000227">Todo:</a></b></dt><dd>replace with embInt_read </dd></dl>

</div>
</div>
<a id="a2bcdb1e6bf6930d5c054ecdca9831eba" name="a2bcdb1e6bf6930d5c054ecdca9831eba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bcdb1e6bf6930d5c054ecdca9831eba">&#9670;&nbsp;</a></span>fread_uint16()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned short fread_uint16 </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>f</em> </p>
<dl class="section return"><dt>Returns</dt><dd>unsigned short</dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000226">Todo:</a></b></dt><dd>replace with embInt_read </dd></dl>

</div>
</div>
<a id="a596a4ab45910b13ea2809999de4c6950" name="a596a4ab45910b13ea2809999de4c6950"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a596a4ab45910b13ea2809999de4c6950">&#9670;&nbsp;</a></span>safe_free()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void safe_free </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><em>data</em> </p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a8cb11404ce46501561f956d33f8dcf95" name="a8cb11404ce46501561f956d33f8dcf95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cb11404ce46501561f956d33f8dcf95">&#9670;&nbsp;</a></span>formatTable</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="embroidery_8h.html#afb3d2c0a23933d1ce50c4ec598b31c56">EmbFormatList</a> formatTable[<a class="el" href="embroidery_8h.html#afc6032ce2b92a1d32b18b87b1e5ba13e">numberOfFormats</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">
<p >This file is part of libembroidery.</p>
<p >Copyright 2018-2022 The Embroidermodder Team Licensed under the terms of the zlib license.</p>
<p >This file contains all the read and write functions for the library. </p><dl class="todo"><dt><b><a class="el" href="todo.html#_todo000225">Todo:</a></b></dt><dd>This list needs reviewed in case some stitch formats also can contain object data (EMBFORMAT_STCHANDOBJ). * </dd></dl>

</div>
</div>
<a id="a659abd7fd70a37a200df2665e35c7c89" name="a659abd7fd70a37a200df2665e35c7c89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a659abd7fd70a37a200df2665e35c7c89">&#9670;&nbsp;</a></span>imageWithFrame</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char imageWithFrame[38][48]</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_dc9e1e299a0b26f222fe6c0a872463f0.html">extern</a></li><li class="navelem"><a class="el" href="dir_6a8aa8af2875e58e82a0145491f7a8e2.html">libembroidery</a></li><li class="navelem"><a class="el" href="dir_50a7dc5dba8160ac8332d90912e622db.html">src</a></li><li class="navelem"><a class="el" href="formats_8c.html">formats.c</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4 </li>
  </ul>
</div>
</body>
</html>
